using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._GeostatisticalAnalystTools._SamplingNetworkDesign
{
    /// <summary>
    /// <para>Create Spatially Balanced Points</para>
    /// <para>Generates a set of sample points based on inclusion probabilities, resulting in a spatially balanced sample design. This tool is generally used for designing a monitoring network by suggesting locations to take samples, and a preference for particular locations can be defined using an inclusion probability raster.</para>
    /// <para>根据包含概率生成一组采样点，从而实现空间平衡的采样设计。此工具通常用于通过建议采样位置来设计监测网络，并且可以使用包含概率栅格定义对特定位置的偏好。</para>
    /// </summary>    
    [DisplayName("Create Spatially Balanced Points")]
    public class CreateSpatiallyBalancedPoints : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public CreateSpatiallyBalancedPoints()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_probability_raster">
        /// <para>Input inclusion probability raster</para>
        /// <para>This raster defines the inclusion probabilities for each location in the area of interest. The location values range from 0 (low inclusion probability) to 1 (high inclusion probability).</para>
        /// <para>此栅格定义了感兴趣区域中每个位置的包含概率。位置值的范围从 0（低包含概率）到 1（高包含概率）。</para>
        /// </param>
        /// <param name="_number_output_points">
        /// <para>Number of  output points</para>
        /// <para>Specify how many sample locations to generate.</para>
        /// <para>指定要生成的采样位置数。</para>
        /// </param>
        /// <param name="_out_feature_class">
        /// <para>Output point feature class</para>
        /// <para>The output feature class contains the selected sample locations and their inclusion probabilities.</para>
        /// <para>输出要素类包含所选采样位置及其包含概率。</para>
        /// </param>
        public CreateSpatiallyBalancedPoints(object _in_probability_raster, long? _number_output_points, object _out_feature_class)
        {
            this._in_probability_raster = _in_probability_raster;
            this._number_output_points = _number_output_points;
            this._out_feature_class = _out_feature_class;
        }
        public override string ToolboxName => "Geostatistical Analyst Tools";

        public override string ToolName => "Create Spatially Balanced Points";

        public override string CallName => "ga.CreateSpatiallyBalancedPoints";

        public override List<string> AcceptEnvironments => ["extent", "geographicTransformations", "outputCoordinateSystem", "randomGenerator", "scratchWorkspace", "workspace"];

        public override object[] ParameterInfo => [_in_probability_raster, _number_output_points, _out_feature_class];

        /// <summary>
        /// <para>Input inclusion probability raster</para>
        /// <para>This raster defines the inclusion probabilities for each location in the area of interest. The location values range from 0 (low inclusion probability) to 1 (high inclusion probability).</para>
        /// <para>此栅格定义了感兴趣区域中每个位置的包含概率。位置值的范围从 0（低包含概率）到 1（高包含概率）。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input inclusion probability raster")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_probability_raster { get; set; }


        /// <summary>
        /// <para>Number of  output points</para>
        /// <para>Specify how many sample locations to generate.</para>
        /// <para>指定要生成的采样位置数。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Number of  output points")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public long? _number_output_points { get; set; }


        /// <summary>
        /// <para>Output point feature class</para>
        /// <para>The output feature class contains the selected sample locations and their inclusion probabilities.</para>
        /// <para>输出要素类包含所选采样位置及其包含概率。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output point feature class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_feature_class { get; set; }


        public CreateSpatiallyBalancedPoints SetEnv(object extent = null, object geographicTransformations = null, object outputCoordinateSystem = null, object randomGenerator = null, object scratchWorkspace = null, object workspace = null)
        {
            base.SetEnv(extent: extent, geographicTransformations: geographicTransformations, outputCoordinateSystem: outputCoordinateSystem, randomGenerator: randomGenerator, scratchWorkspace: scratchWorkspace, workspace: workspace);
            return this;
        }

    }

}